/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.st.entity;

import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.jeesite.common.collect.ListUtils;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 物料检验标准Entity
 * @author HOHD
 * @version 2020-12-16
 */
@Table(name="st_check_standard", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="material_name", attrName="materialName", label="物料名称", queryType=QueryType.LIKE),
		@Column(name="material_type", attrName="materialType", label="物料分类"),
		@Column(name="remarks", attrName="remarks", label="备注", queryType=QueryType.LIKE),
	}, orderBy="a.id DESC"
)
public class StCheckStandard extends DataEntity<StCheckStandard> {
	
	private static final long serialVersionUID = 1L;
	private String materialName;		// 物料名称
	private String materialType;		// 物料分类
	private List<StCheckStandardDetail> stCheckStandardDetailList = ListUtils.newArrayList();		// 子表列表
	
	public StCheckStandard() {
		this(null);
	}

	public StCheckStandard(String id){
		super(id);
	}
	
	@Length(min=0, max=36, message="物料名称长度不能超过 36 个字符")
	public String getMaterialName() {
		return materialName;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}
	
	@Length(min=0, max=36, message="物料分类长度不能超过 36 个字符")
	public String getMaterialType() {
		return materialType;
	}

	public void setMaterialType(String materialType) {
		this.materialType = materialType;
	}
	
	public List<StCheckStandardDetail> getStCheckStandardDetailList() {
		return stCheckStandardDetailList;
	}

	public void setStCheckStandardDetailList(List<StCheckStandardDetail> stCheckStandardDetailList) {
		this.stCheckStandardDetailList = stCheckStandardDetailList;
	}
	
}